package com.lgqz.himalayafm.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import com.lgqz.himalayafm.fragment.DiscoverNoveltyFragment;

import java.util.List;

/**
 * Description:
 * Copyright(c) 2016,邱国兴
 * This Program is protected by copyright laws
 * Created by Little Monster on 2016/12/5.
 *
 * @author 邱国兴
 */

public class DiscoverNoveltyAdapter extends FragmentPagerAdapter {
    private List<DiscoverNoveltyFragment> fragmentList;

    public DiscoverNoveltyAdapter(FragmentManager fm, List<DiscoverNoveltyFragment> fragmentList) {
        super(fm);
        this.fragmentList = fragmentList;
    }

    @Override
    public Fragment getItem(int position) {
        return fragmentList.get(position);
    }

    @Override
    public int getCount() {
        return fragmentList.size();
    }
}
